package cn.csc.module.order.api.order.dto;

import cn.csc.framework.common.pojo.PageParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigInteger;

import static cn.csc.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel("管理后台 - 订单信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class OrderPageReqDTO extends PageParam {

    @ApiModelProperty(value = "订单Id")
    private BigInteger orderId;

    @ApiModelProperty(value = "产品名称")
    private String spuName;

    @ApiModelProperty(value = "买家手机号")
    private String memberPhone;

    @ApiModelProperty(value = "付款时间开始")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private String startPayTime;

    @ApiModelProperty(value = "付款时间结束")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private String endPayTime;

    @ApiModelProperty(value = "商户编码")
    private BigInteger shopId;

    @ApiModelProperty(value = "商户名称")
    private String supplierName;

    @ApiModelProperty(value = "订单状态 0未付款,1已付款,2已发货,3已签收,-1退货申请,-2退货中,-3已退货,-4取消交易 -5撤销申请")
    private Integer orderStatus;


}
